from selenium.webdriver.common.by import By


class LoginPageLocator():

    # 元素定位方式 属性
    username_loctator = (By.NAME, 'username1') # 脱外套
    password_loctator = (By.NAME, 'password')
    loginbtn_loctator = (By.CLASS_NAME, 'us_Submit')
    errmsg_locator = (By.XPATH, '//*[contains(text(),"用户名或密码错误")]')
    logout_locator = (By.LINK_TEXT, '退出')